(function () {
    /**
     * 全垒打弹窗扩展
     * @class AlertAllShootUI
     * @constructor
     */
    function AlertAllShootUI() {
        AlertAllShootUI.super(this);
    }
    Laya.class(AlertAllShootUI, "ui.Room.ResultAllShoot", ui.Room.ResultAllShootUI);

    var _proto = AlertAllShootUI.prototype;
    /**
     * @public
     * 显示弹窗，绑定回调函数
     * 
     * @param {Function} callback 回调函数
     */
    _proto.show = function (callback) {
        this.closeHandler = new Laya.Handler(this, callback);
        var bg = this.bg;

        bg.scale(0, 0);
        Laya.Tween.to(bg, {scaleX : 1, scaleY : 1}, 500, Laya.Ease.backInOut);

        this.popup();
        Laya.SoundManager.playSound("sound/allshoot.mp3");

        Laya.timer.once(3000, this, function () {
            this.close();
        })
    }
})();